package com.命令模式;

/**
 * @author Fang Ruichuan
 * @date 2022-12-26 13:07
 */

public class Invoker {
    private final ICommand command;

    public Invoker(ICommand command) {
        this.command = command;
    }

    public void action() {
        command.execute();
    }
}
